{% extends "RihabBundle::layout.html.twig" %}
{% block titre %}Société {% endblock %}
{% block css %}
{{parent()}}
<link rel="stylesheet" href="/js/vendor/datepicker/css/bootstrap-datetimepicker.css">
<link rel="stylesheet" href="/js/vendor/chosen/css/chosen.min.css">
<link rel="stylesheet" href="/js/vendor/chosen/css/chosen-bootstrap.css">
{% endblock %}
{% block body %}
<div class="main">
    <div class="row">
        <div id="list-encadreur" class="col-md-12">
            {% include 'StageBundle:Societe:page_list_encadreur.html.twig' %}
        </div>
    </div>
</div>

{% endblock %}

{% block js %}
{{parent()}}
<script>

    resetForm()
    
    function deleteEncadreur(id) {
        if (confirm('Voulez vous vraiment supprimer l\'ENCADREUR !!')) {
            $.ajax({
                url: '{{path('stage_societe_delete_responsable')}}',
                data: 'id=' + id,
                success: function(data) {
                    $('#list-encadreur').html(data)
                }
            })
        }
    }
    function resetForm() {
        $('#form-type-stage input').val('')
    }
</script>
{% endblock %}